import request from "@/utils/request";

// 保证金充值
export function addAecharge(data) {
  return request({
    url: "/api/v1/aucdeposirecharge/rechargePC",
    method: "post",
    data,
    headers: {
      user: JSON.parse(window.localStorage.getItem("user")).data,
      iv: JSON.parse(window.localStorage.getItem("user")).iv,
      key: JSON.parse(window.localStorage.getItem("user")).key,
    },
  });
}

// 查询保证金充值结果
export function getRechargeResult(id) {
  return request({
    url: `/api/v1/aucdeposirecharge/rechargeDetail/${id}`,
    method: "post",
    headers: {
      user: JSON.parse(window.localStorage.getItem("user")).data,
      iv: JSON.parse(window.localStorage.getItem("user")).iv,
      key: JSON.parse(window.localStorage.getItem("user")).key,
    },
  });
}
